package com.fang.networkdisk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fang.networkdisk.entity.bo.ReqPathPermitRelationBo;
import com.fang.networkdisk.entity.po.TbNetDisReqPathPermitRelation;
import com.fang.networkdisk.entity.vo.ReqPathPermitRelationVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 路径权限关联表,当一个接口需要多个权限的时候需要此表。与gateway_request_path表联合使用 Mapper 接口
 * </p>
 *
 * @author Bernie_fang
 * @since 2024-12-07
 */
public interface TbNetDisReqPathPermitRelationMapper extends BaseMapper<TbNetDisReqPathPermitRelation> {

    List<ReqPathPermitRelationVo> queryReqPathPermitRelation(@Param("reqPathPermitRelationBo") ReqPathPermitRelationBo reqPathPermitRelationBo);

    int queryReqPathPermitRelationCount(@Param("reqPathPermitRelationBo") ReqPathPermitRelationBo reqPathPermitRelationBo);

    int deleteReqPathPermitRelationById(@Param("id") Integer id, @Param("authorId") String authorId, @Param("date") Date date);

}
